import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.TimeZone;
import java.util.regex.Pattern;


public class ExonCalender {
	
	
	public static boolean isValidDate(String str, String str1){
		
		
		return true;
	}
	public static String resolveDate(String input)
    {
		SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMdd");
		//String currentDate = dateFormat.format(date.getTime());
		//String modifiedString = input.replace("{date(yyyyMMddhhmm)}", dateFormat.format(date.getTime()));
    	return input.replaceAll(Pattern.quote("(yyyyMMdd)"), dateFormat.format(new Date().getTime()));
    }
	public static void main(String[] args) {
		/*String str = "2013-04-28 00:55:33";
		String str1 = "2013-04-28 00:54:33";
		SimpleDateFormat st = new SimpleDateFormat();
		Calendar calendar = Calendar.getInstance();
		calendar.set
		String string = "8";
		String string1 = "9";
		if(Float.valueOf(string) > Float.valueOf(string1))
			System.out.println("not eqval");
		System.out.println("eqval");
		System.out.println(string.compareTo(string1));
		Date date = null;
		SimpleDateFormat simpleDateFormat =null;
		try {
			simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
			date = simpleDateFormat.parse(str);
			long mints = date.getTime();
			date = simpleDateFormat.parse(str1);
			long mints1 = date.getTime();
			if(mints > mints1){
				System.out.println("date is not eqval");
			}else {
				System.out.println("date is eqval or olderdate");
			}
			
		} catch (ParseException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		System.out.println(date); // Sat Jan 02 00:00:00 BOT 2010
*/		
		
		/*String str = "(yyyyMMdd)";
		String str1 = resolveDate(str);
		System.out.println(str1);*/
		
		/*TimeZone timeZone = TimeZone.getTimeZone("CET");
		Calendar cal = Calendar.getInstance(timeZone);
		cal.set(Calendar.DAY_OF_WEEK, Calendar.MONDAY);
		cal.setFirstDayOfWeek(Calendar.MONDAY);
		System.out.println(cal.get(Calendar.DAY_OF_WEEK));*/
		
		Calendar calendar = Calendar.getInstance();
        calendar.add(Calendar.DAY_OF_MONTH, 30 * -1);
        System.out.println(calendar.getTime());
		
		
		
	}

	
}


class sample {
	public static void main(String[] args) {
		char ch;
try {
	String str = "rama";
	ch = str.charAt(6);
	
	
} catch (Exception e) {
	e.printStackTrace();
}
	ch = 'a';
	System.out.println(ch);
	}
}